package com.svms.save.entitys;

import java.io.Serializable;

/**
 * svda_tsgl
 * @author 
 */
public class SvdaTsgl implements Serializable {
    private Long objectid;

    /**
     * 书籍名称
     */
    private String sjmc;

    /**
     * 书籍作者
     */
    private String sjzz;

    /**
     * 出版社
     */
    private String cbs;

    /**
     * 书籍备注
     */
    private String sjbz;

    /**
     * 书籍ISBN编码
     */
    private String isbn;

    /**
     * 所属类别
     */
    private String sslb;

    /**
     * 存放位置
     */
    private String cfwz;

    /**
     * 操作时间
     */
    private String czsj;

    private static final long serialVersionUID = 1L;

    public Long getObjectid() {
        return objectid;
    }

    public SvdaTsgl setObjectid(Long objectid) {
        this.objectid = objectid;
        return this;
    }

    public String getSjmc() {
        return sjmc;
    }

    public SvdaTsgl setSjmc(String sjmc) {
        this.sjmc = sjmc;
        return this;
    }

    public String getSjzz() {
        return sjzz;
    }

    public SvdaTsgl setSjzz(String sjzz) {
        this.sjzz = sjzz;
        return this;
    }

    public String getCbs() {
        return cbs;
    }

    public SvdaTsgl setCbs(String cbs) {
        this.cbs = cbs;
        return this;
    }

    public String getSjbz() {
        return sjbz;
    }

    public SvdaTsgl setSjbz(String sjbz) {
        this.sjbz = sjbz;
        return this;
    }

    public String getIsbn() {
        return isbn;
    }

    public SvdaTsgl setIsbn(String isbn) {
        this.isbn = isbn;
        return this;
    }

    public String getSslb() {
        return sslb;
    }

    public SvdaTsgl setSslb(String sslb) {
        this.sslb = sslb;
        return this;
    }

    public String getCfwz() {
        return cfwz;
    }

    public SvdaTsgl setCfwz(String cfwz) {
        this.cfwz = cfwz;
        return this;
    }

    public String getCzsj() {
        return czsj;
    }

    public SvdaTsgl setCzsj(String czsj) {
        this.czsj = czsj;
        return this;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SvdaTsgl other = (SvdaTsgl) that;
        return (this.getObjectid() == null ? other.getObjectid() == null : this.getObjectid().equals(other.getObjectid()))
            && (this.getSjmc() == null ? other.getSjmc() == null : this.getSjmc().equals(other.getSjmc()))
            && (this.getSjzz() == null ? other.getSjzz() == null : this.getSjzz().equals(other.getSjzz()))
            && (this.getCbs() == null ? other.getCbs() == null : this.getCbs().equals(other.getCbs()))
            && (this.getSjbz() == null ? other.getSjbz() == null : this.getSjbz().equals(other.getSjbz()))
            && (this.getIsbn() == null ? other.getIsbn() == null : this.getIsbn().equals(other.getIsbn()))
            && (this.getSslb() == null ? other.getSslb() == null : this.getSslb().equals(other.getSslb()))
            && (this.getCfwz() == null ? other.getCfwz() == null : this.getCfwz().equals(other.getCfwz()))
            && (this.getCzsj() == null ? other.getCzsj() == null : this.getCzsj().equals(other.getCzsj()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getObjectid() == null) ? 0 : getObjectid().hashCode());
        result = prime * result + ((getSjmc() == null) ? 0 : getSjmc().hashCode());
        result = prime * result + ((getSjzz() == null) ? 0 : getSjzz().hashCode());
        result = prime * result + ((getCbs() == null) ? 0 : getCbs().hashCode());
        result = prime * result + ((getSjbz() == null) ? 0 : getSjbz().hashCode());
        result = prime * result + ((getIsbn() == null) ? 0 : getIsbn().hashCode());
        result = prime * result + ((getSslb() == null) ? 0 : getSslb().hashCode());
        result = prime * result + ((getCfwz() == null) ? 0 : getCfwz().hashCode());
        result = prime * result + ((getCzsj() == null) ? 0 : getCzsj().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", objectid=").append(objectid);
        sb.append(", sjmc=").append(sjmc);
        sb.append(", sjzz=").append(sjzz);
        sb.append(", cbs=").append(cbs);
        sb.append(", sjbz=").append(sjbz);
        sb.append(", isbn=").append(isbn);
        sb.append(", sslb=").append(sslb);
        sb.append(", cfwz=").append(cfwz);
        sb.append(", czsj=").append(czsj);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}